package com.woniuxy.school.dietary.order.service;

import com.alipay.api.AlipayApiException;
import com.woniuxy.school.dietary.Dto.OrderDto;
import com.woniuxy.school.dietary.Dto.PageInfoDto;
import com.woniuxy.school.dietary.Dto.findShoppingDto;
import com.woniuxy.school.dietary.from.*;
import com.woniuxy.school.dietary.order.entity.DietOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 吴彦祖
 * @since 2025年05月14日
 */
public interface DietOrderService extends IService<DietOrder> {

    void addShopping(AddShoppingFrom addShoppingFrom,Long userId);

//
    void deleteShopping(DeleteShoppingFrom from, Long userId);
//
    findShoppingDto findShopping(FindShoppingFrom from, Long userId);
//
    void updateShopping(UpdateShoppingFrom from, Long userId);

    void clearShopping(Long userId);
//
    OrderDto addOrder(AddOrderFrom from, Long userId);
//
    void cancelOrder(String orderNum);
//
    void updateOrder(UpdateOrderFrom from, Long userId);
//
    PageInfoDto findMyOrder(FindMyOrderFrom from, Long userId);
//
    String pay(String orderNum,Long userId) throws AlipayApiException;
//
    String callBack(String orderNum,String payment) throws AlipayApiException;
//
    PageInfoDto storeFindOrder(StoreFindOrderFrom from, Long storeId);

    DietOrder findOrderByOrderNum(String orderNum);
}
